﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>UrlGet: UrlGet.h Source File</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                UrlGet: UrlGet.h Source File
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">UrlGet.h</div>  </div>
</div>
<div class="contents">
<a href="_url_get_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef UrlGet_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define UrlGet_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QtCore/QObject&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QtCore/QUrl&gt;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">class </span>QTimer;
<a name="l00008"></a>00008 <span class="keyword">class </span>QHttp;
<a name="l00009"></a>00009 <span class="keyword">class </span>QFtp;
<a name="l00010"></a>00010 <span class="keyword">class </span>UrlGetContext; <span class="comment">// Generated class</span>
<a name="l00011"></a>00011 
<a name="l00012"></a><a class="code" href="class_url_get.html">00012</a> <span class="keyword">class </span><a class="code" href="class_url_get.html">UrlGet</a> : <span class="keyword">public</span> QObject
<a name="l00013"></a>00013 {
<a name="l00014"></a>00014     Q_OBJECT
<a name="l00015"></a>00015     
<a name="l00016"></a>00016 <span class="keyword">public</span>:
<a name="l00017"></a>00017     <a class="code" href="class_url_get.html#a405d37d12a23303c45110ffe468f705b">UrlGet</a>();
<a name="l00018"></a>00018     <span class="keyword">virtual</span> <a class="code" href="class_url_get.html#a0c31673e64a115294234edb70c9f53aa">~UrlGet</a>();
<a name="l00019"></a>00019 
<a name="l00020"></a>00020     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#a2d3165891395e481646a2a444bd6fcb3">httpStart</a>();
<a name="l00021"></a>00021     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#a1785587199624ed070f6bb691fa460ae">ftpStart</a>();
<a name="l00022"></a>00022     
<a name="l00023"></a>00023     QHttp* <a class="code" href="class_url_get.html#a9743aafc30e51855ce0c3049573f57b8">getHttp</a>();
<a name="l00024"></a>00024     QFtp* <a class="code" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a>();
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">public</span> slots:
<a name="l00027"></a>00027     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#ab54cae439a226ccbccce55310fd51bb7">start</a>();
<a name="l00028"></a>00028   
<a name="l00029"></a>00029 <span class="keyword">private</span> slots:
<a name="l00030"></a>00030 
<a name="l00031"></a>00031     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#ae4bbdb3d1c8126bf7f6b3d2a91b7db18">contextEnd</a>();
<a name="l00032"></a>00032 
<a name="l00033"></a>00033     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#a512c815d3b7d5e5f964b68f6f06632b8">httpDone</a>(<span class="keywordtype">bool</span> error);
<a name="l00034"></a>00034     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#aa409606fc1d39801f456da7990a8a0ef">httpStateChange</a>(<span class="keywordtype">int</span> state);
<a name="l00035"></a>00035     
<a name="l00036"></a>00036     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#a6da56590cec6c2314302c1329f9f6383">ftpDone</a>(<span class="keywordtype">bool</span> error);
<a name="l00037"></a>00037     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#a44d0d859ba433ee67ccfcffae2e94d2b">ftpStateChange</a>(<span class="keywordtype">int</span> state);
<a name="l00038"></a>00038 <span class="keyword">private</span>:
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">00040</a>     UrlGetContext *<a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>; <span class="comment">// Generated class</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#a73259d32482632ed158a04b92ae0ab0b">logInit</a>();
<a name="l00043"></a>00043 
<a name="l00044"></a>00044     <span class="comment">//Http</span>
<a name="l00045"></a><a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">00045</a>     QHttp *<a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a>;
<a name="l00046"></a><a class="code" href="class_url_get.html#a9b47cf0eab2b6a68fd12c207b97634d8">00046</a>     QString <a class="code" href="class_url_get.html#a9b47cf0eab2b6a68fd12c207b97634d8">m_httpHost</a>;
<a name="l00047"></a><a class="code" href="class_url_get.html#ac3299521da7cc49b299f95a33082defd">00047</a>     QString <a class="code" href="class_url_get.html#ac3299521da7cc49b299f95a33082defd">m_httpFile</a>;
<a name="l00048"></a>00048     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#aac50bb8f47a15569c527c5d5d8190f54">httpInit</a>();
<a name="l00049"></a>00049     
<a name="l00050"></a>00050     <span class="comment">//Ftp</span>
<a name="l00051"></a><a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">00051</a>     QFtp *<a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a>;
<a name="l00052"></a><a class="code" href="class_url_get.html#aba9c5a800f1b6c0b792098e7ceb700ac">00052</a>     QString <a class="code" href="class_url_get.html#aba9c5a800f1b6c0b792098e7ceb700ac">m_ftpHost</a>;
<a name="l00053"></a><a class="code" href="class_url_get.html#a24ceddace31a9f2c80a61373f8b681d0">00053</a>     QString <a class="code" href="class_url_get.html#a24ceddace31a9f2c80a61373f8b681d0">m_ftpFile</a>;
<a name="l00054"></a>00054     <span class="keywordtype">void</span> <a class="code" href="class_url_get.html#afd8815c27e1a6e4bef383597750f8c18">ftpInit</a>();
<a name="l00055"></a>00055     
<a name="l00056"></a>00056 };
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#endif // UrlGet_H</span>
</pre></div></div>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
